package com.ganhuoshitang.multipledatasources.mapper;

import com.ganhuoshitang.multipledatasources.entity.Orders;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;

/**
 * 公众号：干货食堂
 */
@Mapper
public interface OrdersMapper {

    @Insert("INSERT INTO `orders` ( `user_id`, `product_id`, `pay_amount` ) VALUES ( #{userId}, #{productId}, #{payAmount})")
    int insert(Orders orders);
}